#include <gtk/gtk.h>
#include "ZoomWindow.h"
#include "capture.h"
#include <unistd.h>  
#include "ZoomCanvas.h"
#include "debug.h"
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <gtk-2.0/gtk/gtkbbox.h>
#include "clique.h"

pthread_t clique;


int main(int argc, char **argv){
	
	gtk_init(&argc, &argv);
	zoom=1.0;
	color=0;
	gray=0;
	brilho = 50;
	contraste=50;
	taxa_refresh=250;
	strcpy(dev_name, "/dev/video0");
	
	GtkWidget* window = zoom_window_new(1280, 720, "xLupa Embedded");
    gtk_widget_set_app_paintable(window, TRUE);
	//pthread_create(&clique, NULL, &get_clique, NULL);
	GtkWidget *canvas = zoom_canvas_new();
	gtk_container_add(GTK_CONTAINER(window), canvas);

	gtk_widget_show_all(window);
    printf("fim main\n");
	gtk_main();

	return(0);
}
